﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicSummary.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicSummary" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicsummary.css"></tbwc:StyleSheetControl>
<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" />

<asp:UpdateProgress ID="UpProgress" runat="server" DisplayAfter="1">
    <ProgressTemplate>
        <div class="ajaxwait">waiting...</div>
    </ProgressTemplate>
</asp:UpdateProgress>

<div class="dataListArea dlStatus" runat="server" id="DivStatus">
    <tbwc:GridViewEx ID="GvStatus" runat="server" SkinID="List"
        AllowPaging="false" OnRowDataBound="GvStatus_RowDataBound" OnRowCommand="GvStatus_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="No.">
                <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                <itemstyle cssclass="listNo" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Reviewer">
                <itemtemplate><asp:Literal ID="LtrReviewer" runat="server"></asp:Literal></itemtemplate>
                <ItemStyle CssClass="topicreviewer" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status">
                <itemtemplate><asp:Literal ID="LtrStatus" runat="server"></asp:Literal></itemtemplate>
                <ItemStyle CssClass="status" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Remind">
                <ItemTemplate><asp:LinkButton ID="BtnRemind" CommandName="Remind" runat="server" Text="Remind"></asp:LinkButton></ItemTemplate>
                <ItemStyle CssClass="remind" />
            </asp:TemplateField>
        </Columns>
    </tbwc:GridViewEx>
    <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
        ID="BtnSummary" runat="server" CssClass="primary" Text="Start Summary" onclick="BtnSummary_Click"/></div>
</div>

<asp:UpdatePanel ID="UpSummary" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
<table cellpadding="0" cellspacing="0">
    <tr><td valign="top" style="width: 432px;">
        <div class="dataListArea dlIdeas" style="margin-right:4px">
            <tbwc:GridViewEx ID="GvIdeas" runat="server" SkinID="List" AllowPaging="false" OnRowCommand="GvIdeas_RowCommand"
                DataKeyNames="ID" onrowdatabound="GvIdeas_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="listNo" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Idea Name">
                        <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="title" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Author">
                        <itemtemplate><asp:Literal ID="LtrOwner" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="owner" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CV">
                        <itemtemplate><asp:Literal ID="LtrCv" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="BV">
                        <itemtemplate><asp:Literal ID="LtrBv" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="TV">
                        <itemtemplate><asp:Literal ID="LtrTv" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText=" ">
                        <ItemTemplate>
                            <asp:ImageButton ID="BtnEdit" runat="server" CausesValidation="False" CommandName="Summary"
                                SkinID="ListDetail" CommandArgument='<%# Eval("ID")%>' />
                            </ItemTemplate>
                        <ItemStyle CssClass="listOp" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>
    </td>
    <td valign="top" style="width: 800px;">
        <div class="dataListArea dlDetails" style="margin-left:4px;">
            <tbwc:GridViewEx ID="GvReviewDetail" runat="server" SkinID="List" 
                AllowPaging="false" onrowdatabound="GvReviewDetail_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="listNo" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Reviewer">
                        <itemtemplate><asp:Literal ID="LtrReviewer" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="reviewer" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Class">
                        <itemtemplate><asp:Literal ID="LtrClass" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="class" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Comment">
                        <itemtemplate><asp:Literal ID="LtrComment" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="comment" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Suggestion">
                        <itemtemplate><asp:Literal ID="LtrSuggestion" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="suggestion" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IP">
                        <itemtemplate><asp:Literal ID="LtrIP" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="ip" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IP Comment">
                        <itemtemplate><asp:Literal ID="LtrIPComment" runat="server"></asp:Literal></itemtemplate>
                        <ItemStyle CssClass="comment" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>
        <div class="wrapper">
            <tbwc:Fieldset ID="FsSummary" runat="server" DesignWidth="1240px" CssClass="topic" GroupingText="Summary">

                <div class="line"><asp:Label ID="LblRecord" runat="server" AssociatedControlID="TxtRecord" Text="Review Record:" CssClass="title"></asp:Label><asp:Label 
                    ID="TxtRecord" runat="server" CssClass="readvalue"></asp:Label></div>
                
                <div class="line"><asp:Label ID="LblReviewType" runat="server" AssociatedControlID="DdlReviewType" Text="Review Type:" CssClass="title"></asp:Label><asp:DropDownList 
                    ID="DdlReviewType" runat="server" Width="10em"></asp:DropDownList><span class="hint"><asp:CompareValidator
                    ID="CvReviewType" runat="server" ControlToValidate="DdlReviewType" ErrorMessage="Required" 
                        Display="Dynamic" ValueToCompare="-1" Operator="NotEqual" ValidationGroup="Summary"></asp:CompareValidator></span></div>

                <div class="line"><asp:Label ID="LblReviewIP" runat="server" AssociatedControlID="DdlReviewIP" Text="Review IP:" CssClass="title"></asp:Label><asp:DropDownList 
                    ID="DdlReviewIP" runat="server" Width="4em">
                        <asp:ListItem Text="Y" Value="1"></asp:ListItem>
                        <asp:ListItem Text="N" Value="0"></asp:ListItem>
                    </asp:DropDownList></div>

                <div class="line"><asp:Label ID="LblSummary" runat="server" AssociatedControlID="TxtSummary" Text="Summary:" CssClass="title"></asp:Label><asp:TextBox
                    ID="TxtSummary" runat="server" Width="40em" TextMode="MultiLine" Rows="5"></asp:TextBox><span class="hint"><asp:RequiredFieldValidator
                    ID="RfvSummary" runat="server" ControlToValidate="TxtSummary" ErrorMessage="Required" 
                        Display="Dynamic" ValidationGroup="Summary"></asp:RequiredFieldValidator></span></div>
            
            </tbwc:Fieldset>

            <div class="operation" style="padding:8px 0px 8px 16em"><asp:Button 
                ID="BtnSave" runat="server" CssClass="primary" Text="Save" OnClick="BtnSave_Click" /></div>

        </div>

    </td></tr></table>
    </ContentTemplate>
</asp:UpdatePanel>
